﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace JukeboxParty
{
    public class Artist
    {
        //
        // Properties
        //
        #region Properties
        private String _artist;
        public String Name
        {
            get { return this._artist; }
            set { this._artist = value; }
        }

        private List<Album> _albums;
        public List<Album> Albums
        {
            get { return this._albums; }
        }
        #endregion

        //
        // Constructors
        //
        #region Constructors
        public Artist() :
            this("__error__")
        {
        }

        public Artist(String artist)
        {
            this._artist = artist;
            this._albums = new List<Album>();
        }
        #endregion

        //
        // Member Functions
        //
        public void AddAlbum(String albumName)
        {
            this._albums.Add(new Album(albumName, this));
        }
        public void AddAlbum(Album album)
        {
            this._albums.Add(album);
        }
    }
}
